﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bai_2
{
    class Person
    {
        string hoten;
        DateTime namsinh;
        string quequan;
        public virtual void Nhap()
        {
            Console.Write("Nhap Ho & Ten: ");
            hoten= Console.ReadLine();
            Console.Write("Nhap nam sinh: ");
            namsinh = DateTime.Parse(Console.ReadLine());
            Console.Write("Nhap Que Quan: ");
            quequan = Console.ReadLine();
        }
        public virtual void Xuat()
        {
            
            Console.WriteLine("Ho & Ten: " +hoten);
            Console.WriteLine("Nam Sinh: " +namsinh );
            Console.WriteLine("Que Quan: " +quequan);
        }
       
    }
}
